package com.zme.entity;

public class Student {
    private int stuNo;
    private String stuName;
    private int stuAge;
    private StudentCard studentCard;

    public Student() {
    }

    public Student(String stuName, int stuAge, StudentCard studentCard) {
        this.stuName = stuName;
        this.stuAge = stuAge;
        this.studentCard = studentCard;
    }

    public Student(int stuNo, String stuName, int stuAge, StudentCard studentCard) {
        this.stuNo = stuNo;
        this.stuName = stuName;
        this.stuAge = stuAge;
        this.studentCard = studentCard;
    }

    public int getStuNo() {
        return stuNo;
    }

    public String getStuName() {
        return stuName;
    }

    public int getStuAge() {
        return stuAge;
    }

    public StudentCard getStudentCard() {
        return studentCard;
    }

    public void setStuNo(int stuNo) {
        this.stuNo = stuNo;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public void setStuAge(int stuAge) {
        this.stuAge = stuAge;
    }

    public void setStudentCard(StudentCard studentCard) {
        this.studentCard = studentCard;
    }

    @Override
    public String toString() {
        return "stuNo=" + stuNo + ", stuName=" + stuName + ", stuAge=" + stuAge + ", cardNo=" + studentCard.getCardNo() + ", cardName=" + studentCard.getCardName();
    }
}
